package day19;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public class TestExecutor {
	public static void main(String[] args) {
		Executor exec = Executors.newFixedThreadPool(1);
		exec.execute(new Target1());
		exec.execute(new Target2());
	}
}
class Target1 implements Runnable{
	public void run(){
		for(int i=0; i<100; i++){
			System.out.println("$$$");
		}
	}
}
class Target2 implements Runnable{
	public void run(){
		for (int i = 0; i < 100; i++) {
			System.out.println("###");
		}
	}
}
